package cz.tpj.database.aktivity;

import static org.junit.Assert.*;

import org.junit.Test;

import cz.tpj.util.ErrorDatabase;

public class AktivitaTest {

	@Test
	public void testAktivita() {
		Aktivita o1 = new Aktivita("ID1", "action1");
		
		try {
			o1.setId("ID2");
			o1.setNazov("action2");
		} catch (ErrorDatabase e) {
			e.printStackTrace();
		}
		
		assertEquals("ID2", o1.getId());
		assertEquals("action2", o1.getNazov());		
	}

}
